
#include <DFA.h>
#include <Store.h>

int main(int argc, char** argv)
{
	if ( argc > 1 ) {
		DFA dfa(argv[1]);
		dfa.read();
		//cout << dfa;

		char temp[256], c;
		cin.get(temp, 255); cin.get(c);
		dfa.run(temp);
		if ( dfa.accepted() > 0 )
			cout << "Accepted" << endl;
		else
			cout << "Rejected" << endl;
	}
	return 0;
}

